//
//  GAKKINetworkLogger.h
//  GANGAIKit
//
//  Created by fh on 2019/11/15.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// 网络请求日志打印类
@interface GAKKINetworkLogger : NSObject

/// 是否打印网络log信息
@property (nonatomic, assign) BOOL shouldPrintNetLog;
/// 是否打印简易网络log信息
@property (nonatomic, assign) BOOL easyPrintNetLog;

/// 打印请求信息
/// @param request 请求
/// @param apiName 请求链接
/// @param originRequestParams 源参数
/// @param actualRequestParams 实际参数
- (void)logDebugInfoWithRequest:(NSURLRequest *)request apiName:(NSString *)apiName originRequestParams:(NSDictionary *)originRequestParams actualRequestParams:(NSDictionary *)actualRequestParams;

/// 打印响应信息
/// @param response 网络响应
/// @param responseObject 响应数据对象
/// @param responseString 响应数据对象字符串
/// @param request 请求
/// @param originRequestParams 源参数
/// @param actualRequestParams 实际参数
/// @param error 错误信息
- (void)logDebugInfoWithResponse:(NSHTTPURLResponse * __nullable)response responseObject:(id)responseObject responseString:(NSString *)responseString request:(NSURLRequest *)request originRequestParams:(NSDictionary *)originRequestParams actualRequestParams:(NSDictionary *)actualRequestParams error:(NSError *)error;

/// 简易打印请求信息
/// @param url 请求链接
/// @param originRequestParams 源参数
/// @param actualRequestParams 实际参数
/// @param responseObject 相应数据
/// @param error 错误信息
- (void)easyLogDebugInfoWithUrl:(NSString *)url originRequestParams:(NSDictionary *)originRequestParams actualRequestParams:(NSDictionary *)actualRequestParams responseObject:(id)responseObject error:(NSError *)error;

@end

NS_ASSUME_NONNULL_END
